
// const resolveApp = require("./path");
import {Configuration} from "webpack";
import {generatePageList} from "./utils";
import MiniCssExtractPlugin from "mini-css-extract-plugin";

export default {
    mode: "development",
    devtool: 'cheap-module-source-map',
    devServer: {
        port: 9000,
        // index: "pages/home/index.html"
    },

    module: {
        rules: [
            // 它会应用到普通的 `.css` 文件
            // 以及 `.vue` 文件中的 `<style>` 块
            {
                test: /\.scss$/,
                use: [
                    'vue-style-loader',
                    'css-loader',
                    'sass-loader'
                ]
            },
        ]
    }
} as Configuration